Class PipelineImpl

java.lang.Object
com.cisco.pt.ptmp.impl.PipelineImpl
All Implemented Interfaces:
Pipeline

public class PipelineImpl extends Object implements Pipeline
Author:
packettracerexapps@external.cisco.com
  • Constructor Details

    • PipelineImpl

      public PipelineImpl(PacketTracerConnection packetTracerConnection)
      Parameters:
      packetTracerConnection - PacketTracerConnection
  • Method Details

    • getFilters

      public List<Filter> getFilters()
      Description copied from interface: Pipeline
      The collection of filters for a given pipeline are determined by the connection negotiation properties
      Specified by:
      getFilters in interface Pipeline
      Returns:
      List<Filter>a list of filter implementations
      See Also:
    • read

      public LTV read() throws IOException, InterruptedException
      Description copied from interface: Pipeline
      Retrieves the data from the connection, executes the @see Filter.in(byte[]) method of each filter on the pipeline and finally constructs a @see com.cisco.pt.LTV
      Specified by:
      read in interface Pipeline
      Returns:
      a LTV wrapping the data sent from PT
      Throws:
      IOException - read Exception
      InterruptedException - read Exception
    • write

      public void write(LTV ltv) throws IOException
      Description copied from interface: Pipeline
      Executes the @see Filter.out(byte[]) method of each filter on the pipeline and sends the resulting data to the connection
      Specified by:
      write in interface Pipeline
      Parameters:
      ltv - LTV
      Throws:
      IOException - Write exception